import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ViewUI from 'view-design';
import echarts from 'echarts'
import downloadList from "./components/downloadList"
import 'view-design/dist/styles/iview.css';

import "./styles/init.scss"
import "./styles/distance.scss"
import "./styles/tools.scss"
import "./styles/iconfont.css"
import './styles/design.less';


const { ipcRenderer } = window.require('electron')

Vue.use(ViewUI).use(echarts)
Vue.component('downloadList',downloadList)
Vue.config.productionTip = false
Vue.prototype.$ipcRenderer=ipcRenderer
Vue.prototype.download_run=(url)=>ipcRenderer.send('download_run',url)
Vue.prototype.$domain=process.env.VUE_APP_HOST
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
